package com.ms.seguridad.infrastructure.jdbc;

import java.io.IOException;
import java.util.Properties;

public class ResourceProperties {

    public static Properties getResourcePorperties(String resourcePath) throws IOException {

        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();

        Properties props = new Properties();

        props.load(classLoader.getResourceAsStream(resourcePath));

        return  props;
    }
}